Quark: Get style sheet not working

I’ve asked for and received help on this script before but this is my last hurdle. My script will get a filename, create a box, import an image, anchor it in text, and then continue. My problem is this:

if name of style sheet of paragraph i is in (numberList as text) and

After the first box on the page is placed the script will not get the name of the rest of the paragraphs until the next page. In the “log” window it shows

Get name of paragraph 37
Get name of paragraph 38
Get name of paragraph 39
Get name of paragraph 40

Any ideas of how I can get the script to recognize paragraphs after the first placement?

AS 1.6
OS 9.2.2
Quark 4.11

Thank you,

Steven