Fix onoff

It seems the same problem as on #292, but the code was moved to a new location to fix other problems in itentifier_led_stmt and doing that undid the fix.