Fix error in getFiles function of GlobalContainer