Update twister.cpp

a fix