minor processhtml fixes