Fixed issue with file loading