fixed issue where adhoc queries were not executing (for Takunda)