fixed errors

description in corresponding [issue](https://github.com/webjars/webjars/issues/608)
This should be `0.5.1` (i.e. correspond with the upstream version).