Fix flip issue.