fix bug converting degrees to radians