fixing log trouble