Fix writes for past end of map

Woops, don't try merge to some pointer past end of map