Fixed dialog crash.