Fix a bug that occurred when loading a board with lines repeated