remove fails if map is NULL