Fixed issue with bias not updating correctly