fix bug

finish flag set error, causing result missing