fix for search condition