fix download modal in issue #161, #163, #167