fixed sendEvent