fix: catch KeyError Exceptions