Fixed a little error with the get_tags_by_type() function