Fix issue with old files in the API