Fix zero in outgoing and incoming link list.