Fix bug tree