Fix Y axis flipping issue