fix problem when close confirmDialog