Trying to fix Math.atan2 bug. (No, it wasn't fixed last time)