Fixed Captioning Problem

It was using the column as the index for finding the appropriate
caption rather than the row.