Fixed issue with clicking the horizontal and vertical lines