Fixing dialog crasher.