I commented out the f.folder = true; so that only f.file = true but the problem remains (the file is still grey)