Fixed erratic movements when making polygon