Fix loading of all files in directory