Fixed ls multiple write error.