Important bugfix in avl_insert_before() and avl_insert_after()