Switching between different routines (subtasks) after one trial each

Are you also feeding in a conditions file to each of the inner loops? because if so make sure that you do not have spreadsheets in the inner loops - only one spreadsheet in the outer loop