[AS][IDCS2] Disappearing Page Items when grouping

I have a strange problem going on and I wonder if it’s a system error or application bug. When I group all page items of a particular spread the items disappear, they’re pretty much deleted from the page without an history that there was a deletion If I go to “Undo” under IDCS2 “Edit” you can Undo the grouping action and the items return. Plus if I continue trying to do anything with the now vanished page items I get “Adobe InDesign CS2 got an error: Object is locked.”

Thoughts? Has anyone experienced this?

Here’s the initial script:


tell application "Adobe InDesign CS2"
	tell active document
		set theSpreads to every spread of it
		repeat with i from 1 to count of theSpreads
			tell spread i of it
				set boundingRect to (make rectangle with properties {geometric bounds:{0, 0, 11, 16.875}, stroke color:"None", fill color:"None", label:"boundingRect"}) send to back
				set thegroup to make group with properties {group items:page items}
				tell thegroup
					set label to "miniGroup"
					resize horizontal scale 37 vertical scale 37
					move to {1.9506, 0.59}
				end tell
			end tell
		end repeat
	end tell
end tell