fix load_from_file bug