Added a fix to Custom categories to handle relegations.