fix hexcolor detect
fix criteria getLimit when no criteria