fixing callback on postMessage fallback