fix the bug: when you rollback to another tree, the active flag is not set.