Merge pull request #1 from Awesomez/master

工厂和错误代码的一点改动
bug fix 

just a joke , hmmm ~
Merge pull request #1 from oiooj/master

update