fixed NullPointerException in where() method for blank fields