Fix bugs in entry_tags_span