fixed for emscriten