Fix mixed mode.