fix simplegrid bug