Add missing run index to looped variable in resol.m

(cherry picked from commit 590c0985f8ca88a98b23da7edfc189da3f0767fe)