Updated selectChildren() function to call after the loadAll() function instead of in the callback.

By calling selectChildren() inside the callback, it was causing problems which prevented it from loading deep into the hierarchy correctly. This way, the loadAll() function gets completely through before starting to select children.