correct invalid path.