Thanks this fixed it for me as well.
For those using 4.1.3 it is line 844 of criteria.php. For some reason searching the file couldn't find the line. Thought I would post in case it helps someone...