fixes preg match