fixed trait class loading

fixed trait class loading