fixing traits dumping