Fixed a Firefox related bug where the owner in the modal dialog wasn't selected correctly. This resolves #13