Fix dir problem when p2p

Fix dir problem when p2p