Set parent of undefined resources