ai variable fix