fix tree menu problem with pre-open parameter