Fix bug in auth-required-command