fixed deleteRule function call