Fixing bugs in sparse maps.