better setting of parentid

git-svn-id: http://sunny.svnrepository.com/svn/sunny-side-up-general/metatags/branches/2.4@5155 7b40dde9-fc51-43d4-b609-63a66f0a0cee