dialog bug fixed