fix dir/ err in insertnode