Fix bugs in nneval.

According to DeepLearnToolBox.