Fixed bugs in travis