fixed tree collapse at redirection