fix node insertion at top.