Minor fixes.
Minor fixes.
Fix crashes on dialog with problem.