Working to remove invalid paths.