fixed card flip issue.