bug fixing in route tree popup menu