Flipping is working correctly