Fixed file loading