Fixes tag inconsistencies