Fixed regex bug