fixed issue with applying rules at return from call