fix plaintext for supporting on/off