Fix tags that reference tag parents before existence