fixing tag ref