fix bad file loading