fix yet another race condition if the logs are empty