Fix bug in mercer map