Fixed degree/radians issue on trigonometric functions