Fix issue with wron OOP prototype inheritance