fixing log messages.