fix for bug where user can mess up the file browser