fix autoinstall bug