fixed npe when running nonexistent command