fixed bug when saving standalone html