fixed bug that when last two points have same location, marker for second to last point will not be created thus cause problem that when the last item tries to access the marker, it returns null.