Fixed a bug in the loss layer. It now backpropagates gradients to both bottom blobs.