fatal bugs about NN1 derivative wrt weights were fixed.