Fix an atrocious bug.