Fix bug checkfinish