fix indices of "hosts" arrays.
Merge pull request #1 from PreetamJinka/yugank/fixes

fix indices of "hosts" arrays.