sendEvent bug