fix error with deleting key by wildcard