fixes the gap modifier for the grid