fix a bug that occurs when there are no stacks of dots with 2 or more points