range fix in SmartAI:exclude