fixed finishAll error.