fixed migration of categories