Fix PLC bugs

- use default var
- togggle is 'pt' not 'pf'