added missing 'event' parameter (fixes #342)