significant out-of-range bug fixes in backpropagation