fix issue in flip transition