fixing bad regex