Fix event confilct on dialog click