Pawel Abbott struck a dramatic 89th-minute winner to hand Huddersfield victory against 10-man Bristol City.
The Pole headed home substitute Andy Holdsworth's cross after wasting several earlier chances.
City had midfielder Luke Wilkshire sent off for a second bookable offence early in the second half.
Veteran Huddersfield striker Andy Booth had a header cleared off the line while former Town hero Marcus Stewart struggled to make an impact for City.
Huddersfield: Rachubka, Nathan Clarke, Mirfin (Holdsworth 59),
McIntosh, Adams, Brandon, Worthington, Hudson (Carss 80),
Schofield (Taylor-Fletcher 72), Booth, Pawel Abbott.
Subs Not Used: Senior, Collins.
Goals: Pawel Abbott 89.
Bristol City: Phillips, Woodman, Fortune, Heywood, Carey,
Grant Smith (Brown 52), Wilkshire, Skuse,
Cotterill (Jamie Smith 76), Stewart, Brooker (Bridges 77).
Subs Not Used: Murray, Keogh.
Sent Off: Wilkshire (50).
Ref: A Hall (W Midlands).