fix #3550: dialog don't show up the second time