Fixed compute_integral output variable bug