I suggest you abandon the approach you are using, and try this:
or work with the native Spreadsheet component in AI2