fixed bug in pstore load code