fix render issue with grid lines