fixed bug in experiment generator