Fixed initial tile flipping issue