Fixes a bug with bad commands