Fixed file loading bug