fixed all_tags method raises exception