Clinicaltrials bug fixing