fix flip