fixed error checking
Merge branch 'master' of https://github.com/elongpre/The-Seventh-Group