fix bug in display of traits in trial detail