Fix error
Merge pull request #17 from VMBindraban/hotfix/fix-error-check

Fix error