Fix file loading