ensure search values are properly sent