Fixed regular expression bug