Fixed file loading issue