fixed a bug for red black tree insert function