Fixed issue: Fixed a problem of inheritance (OOP)