fix mistake in wasm code