Update APC20.control.js

Mode switching bug fix