fix array inheriting class attributes