Fix category excluding/including bug (see issue #12)