Fixing for case where only one category tag exists