fix bug in regular expression