corrects time calculation for index_single_document() method