Fixed issue with file browser and clicking on files not properly choosing file and closing browser dialog.