prevent AI mistakes