fixes negative margin bug on modern config of the grid