Fix error due to bolt's API changes.
Merge pull request #4 from larrylv/fix-error-due-to-bolt-api-change

Fix error due to bolt's API changes.