Fixed bug related to first load and selecting a file from the sidebar.