Update tevent.cpp

fix some bug , i think