fixed issue with modal dialogs