fixed issue with indexing into an object.