Fixing log calls