fix bug nerd2.cpp