fix a bug tree