bug fix in autorun