Fixed bug in finalStatisticalUpdateC