Detect multiple root objects error