Fixed some bugs with the file browser