fixed tile flip issue