Regexp bug fixed