Correct topology rubber band bug for first and last vertexes
Merge pull request #975 from leyan/topology_bug_2

Correct topology rubber band bug for first and last vertexes