download documents fixes