Fixed html write