fix ResourceParent type