Fix category processing