Fix issues with summary for GLS fit using gradient optimization