fixed keyvalue errors in payload apihandler:99