fixed postmessage