fix issues in traits header