Fix bug overwrite define html before serialize