fix softmax loss layer bug; all tests pass