fixed issue with inheritance model