fix some reference cycles in traits