Fixed bug where multiple files could not be loaded