fix previous commit to organize dlg_list_ctx as array too

(cherry picked from commit 7b83d0783fd6e67347c84cdc8eca6d7234021c81)