fix calc_acc_runtime to handle incosistent data