Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Remove segment->next1 since it always points at the next segment or nowhere.