fixbug: Undefined key