fix onMessage param