Fixed bug with edge startpointprev not being stored correctly.