Bugfix: access to missing dictionary.

Raised a KeyError exception without this change.