fix flip event handling