Fixing app.files Array extraction