fixed a small bug in a regex