fixed load_from_file

fixed issues with last patch