bug fix in angle_to_position
bug fix in angle_to_position