another dialog close button fix (closes #190 again)