there is a bug in map_delete

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>