remove redundant path