small bug fix

moved the movingVertex reset variable to prevent having to double click
to add a vertex after removing a vertex