Well,
In the experiment you uploaded you use event.clearEvents() Why do you use it? See here
event.clearEvents()
Best wishes Jens