Hi @carlijn, thanks for this. Looks like you found a bug, which I will get fixed for the next release.
For now, you can manually set your line colors at the start of each routine in a code component. In Begin Routine:
target.setLineColor(new util.Color(targetcol));
Do this for all of your stim that need their color setting on each trial.