bugfix: loopEnd event emitted too early led to bug
0.1.5