Arch: fixed errors in webgl exporter