fix for resource delete