fixed a bug with pmap loading