fixed the issues with the guide trees