Fix category order in the categories tab