Fixed unwanted flip