Swap x_proj and y_proj in project when appropriate