Fix code with alternate modes.