Illustrator grouping


Why does the next script work in Illustrator CS5 en not in Illustrator CC?
It gives a error:

Adobe Illustrator kreeg een fout: an Illustrator error occurred: 1346458189 (‘MRAP’)

tell application “Adobe Illustrator”
set theDocument to current document
tell theDocument

	set newGroup to make new group item
	move every item of selection to newGroup
end tell

end tell