Fixed bug with not loading filenames correctly