Fix the construction of query condition in interactions
Merge pull request #391 from CruGlobal/MH-1048

Fix the construction of query condition in interactions