fixing the last log item