fixed segmentation fault in Nite2.cpp