fixed onmessage