fix the finish problem.