fixed a small bug in which m_hit parameter was not set for curve intersection