Bugfix for Event.target, fixes #26