couple fixes to block map generation