Fix #0015420: Invalid category check is not made