Fixed bug occurring after finishing pesterlog.