Fix popup action while disappearing