fix for empty criteria