bug fix in function 'findCurveID' (euler->quaternion)