Fixing log function arguments