Fix bug: show two dialog