Double reserved credits + Data not saved

jsPsych version (e.g. 7.1.2):
Hey, I’ve been trying to run a jspsych pilot experiment on the platform recruiting via prolific.

Unfortunately, I encounter a few odd behaviors and am unable to figure out what to do.

First, it seems that sometimes two credits are reserved when only one participant is doing the task. I see that credits were reserved in a gap of a few seconds. Does that mean the page was refreshed and another credit was consumed? Would it require me to constantly have a doubled amount of credits available?

Second, it seems that sometimes credits are not consumed and saved although participants completed the task. I’ve added a “finish_pavlovia” jspsych trial which immediately follows a “finish_task” which opens the submission page on a new tab. I’ve also attempted to add redirection to pavlovia of the experiment tab with a “completed callback” to avoid participants being stuck on the “data is being uploaded” screen. May that be the problem in that regard?

link: index.html · main · Nitzan Shahar / task_i1 · GitLab
I really appreciate your help.