fix issue with inheritance