Fix bug indexing username and hostname.