Bugfix: cmd_reset could not determine the mode

`opts = dict(opts)` was missing.