fixed bug in tree_map where it would always allow clicking