Fixed issue #2638

The issue prevented loading models in sub-folders by passing an array.