fix downloading of stored files