Replace struct name node with Node, fix bug that checks wrong head address.