WordNode equals method fix