build 1028: fixed issue, where parent category could be the same as the sub category