AI followingdirection fixed