Fix bad ref to kwargs in cmd state