Fix bug: can not download attachment on safari