Fixed bug with loadfiles