I got the following image because I forgot to multiply the normal by negative one if the back face was hit.