Fixed download document on open