fixed bug affecting first trial in a given condition when condmap was undefined