fix download button output buffer issue

fixes #98