inheritance bugfix