Fixed loss function to sum over absolute values.