fix bad command regex