fixed some logging errors