fix a bug for display tags and categories