small fix in auto script