fixing bug in null initial weights