Fix for emscripten