fix a download button bug