fix check finish func