fixed regex condition