Fix a bug that causes lines to render apart from each other