Fixed bugs in termco; close #120