fix disposing html for reader