hopefully fixed an issue where tag.local_used_count is not defined