Fixed bug in nnweights
merged