fixed double ai call