Fix memory limit on download