fixed errors in init script