fixed getAngle