fix a bug in roadwork segment and snapping point