Fixed bug in regular expression