fixed full reset problem in dialog