debug double postMessage