fixed getAngles