Fixing argument order of atan2