Misc bug fixes in dialogs and docks