postmessage fix