--fixed filtering for CRM-12192
Merge pull request #247 from pradpnayak/CRM-12192

--fixed filtering for CRM-12192