the calculated first_time was wrong for "query"