Bugfix: cmd_reset could not determine the mode