Fixed a bug where bias was not included in setWeights