dialog reappear error fixed