fixed automode_key references