Fixes a minor issue with traits.