fixed rbtree insertion