fix code error, close #42