Fixed indexing error

https://jira.zenoss.com/browse/CC-554