Fix duplicate html output