fix: undefined onfinish event target

The finish event has the player as a target
Merge pull request #589 from douglasduteil/fix-onfinish-target

fix: undefined onfinish event target