fixed minor error in incResult