Fix bug when setting grid manually with AnalyticalYSOModel