further fixes to phash mapsizing