fix 'Populating Next Right Pointer in Each Node' bug