fixed the problem that the angle is not from 0 to 360