handle null categories