Fixes issue in CategoryType when setting with None