Fix bug in init script