fixing referencing tags