Fix issue 40 of traits.