fix commonjs compat