Fixed dialog bug.