Fix the grid lines being incorrect when more than one item open