change dict lookup to explict index lookup.
We had a crash here due to get() returning None, if this happens
again we should get the value that fails.