Fixing log issue