Remove unneccesary path.