fixed a load from file bug