Fixed error introduced by readWeights() func. (see details)