correct dialog bug