weird bug at multilayerperceptron.cpp:97