sync before added new finished check functionality

to the code
sync before added new finished input check