fix the sync problem of the two init scripts