Fixed bug where sigma values were getting updated to mu - d(sigma). Updated associated unit test.