Fixed bug in old_MBM_interface_functions that caused an indexing error if the final timepoint was used as the average.