fix unique ids (was broken when maps were used more than once on a page)