fixed grad of L2 Error