fix error on trial detail page