small fixes for dialog;