Fixed bug with Trait attribute that was not recognized correctly after conversion.