Fixed a bug that caused lines going from the bottom left corner to the upper right corner not to be drawn in some cases.