fixed delete of keys when not present in the source code