properties with null values crashed criteria.js. Now fixed.