Fixed preg_match bug