fixed bug with setting current file after refresh and refreshing dir content