Fix export custom categories for excel