Be sure to clear the loaded files array before filling it.