fix trait inheritance