fix bug for default grid