Corrected parsing of categories/tags