Fixed an issue where the onDelete rule was an empty string