fixed a bug in Persistence::load