fix init script