Double inheritance bugfix