Fixed bug with Regex find method