Fixed crash when tag was of format 'tag, '.