fixing Tag.extend