fix errors from pull request