Fix device inheritence