fixed stackoverflow exception on download
fixed stackoverflow exception on download (save)