fix runaway regex