fixed emscripten cone problems