Fixed bug where the oldest timestamp was not calculated correctly