Fix warning when category is not supplied