remove hash from path