Fix misplaced head closing.