remove a superfluous idpath