fixed linking between nodes