make mob matching distinct

fix bugs when deleting nonexistent dictionary keys