Fixed AI resetting.