Fixed  error on preg callback.