Solved the mod 360 issue