- fixed uncatched KeyError exception