added main grid fix