Fix up random code.