Fixed the loop bug in child folder geter.