typo corrected in pointOnSurface call