fix nullpointer, fix event like/going