fixed errors

description in corresponding [issue](https://github.com/webjars/webjars/issues/608)