Fixed a bug with check_sys_level_cmds()