fix bug where view model tried to read non-existent file