fixed gradBias corner case