fixed the finish page problem