fix autostartflag being unset