small fix in startup logic.