fixed flipping everything