Fix files id retrieval.
Merge pull request #42 from HassenRiahi/FixRetFileid

Fix files id retrieval.