Fixed symmetry in checkgrad issue