correct tree problem, log to find boolean error