fixed wrong placement of ) in _onMessage