fix ac-look candidate function