fixed regex error on windows