Fixed "extra lines" issue when displaying a grid and axis