Fixed postMessage problem