Fixed the code issues:
https://pareview.sh/node/2962