Fix problem with duplicate variable in subclass overriding superclass variable