fix mode on init script