fixing NoStackParamValidationRule logic