fix error in trial design