Fixed the bug with the share link, when model group ids are not in consecutive order beginning with 0.