fixed some bugs in the es6 build