Dialogs: fixing compile errors