Reverted the change that killed html buffer after export.