fix bug in event proxy, fixes #15