Correctly mark selected file on load.