fixed inheritance in Item classes.