bug fix: line was also being drawn outside dots