fix pathname.