Small fix that might or might not fix "EFAULT (bad address)"-errors when executing scripts on events