fix some mistakes in init scripts