fixing log error