fixed regex bug