Fix loading of file in backend