[bug] avoid stupid KeyError