Fix errors related to the add log calls.