fix ES2 build