Fix files id retrieval.