fixed autorun bug