Fix the issue that the calculated result for event variable might not be set back to data set correctly.