Fixed a small bug in sphere's intersect function.