solve: Notice: Undefined index: key