sysctl: fix minor bugs