`appendBias` puts `1.0` at the end of the vector. So the slicing here needs update.