fix race condition where previous values hadn't been computed yet, but remainder < interval//2