Fixed an issue with inheritance