fixed issue with multi-layer back propagation learning