fix for private properties in multiple classes of the same object