Nah, it's probably because the $cid is no longer sequential, and thus $scon() is getting the wrong numerical handle.

Use $scid($cid).xxx instead.