Fix issue that was causing doubled log entries.