fix TypeError: 'Submission' object is not subscriptable