Fixed bug with custom rules and params