'Response' and 'Correct' in log file
I am creating a continuous performance task with Open Sesame, but it seems that the responses are not being registered correctly. During the task the participants will see or hear the numbers 1 or 2 and they have to press the left mouse button when they see or hear the number 1 and do nothing when they see or hear the number 2. I used coroutines so that the participants can see or hear the stimulus for a certain amount of time and they can click as soon as they see or hear the stimulus. The experiment seems to be working as I want, but when I open the log file I see that it is not registering my responses as it should. For the first trial of each block the 'correct' is always undefined and in the 'response' column it always says I clicked the button even though I didn't. For all the other trials it seems to record my answer from the previous trial. In the picture below you can see the 'response column' and it says I didn't click the button for trials 2 and 3 when I actually clicked for trials 3 and 4 (and not for trials 1 and 2). I cannot find what exactly causes this problem. Did I do something wrong?
(I have included the experiment to make it more clear what exactly the task is)