diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -27,7 +27,7 @@ function gulpReplaceRef(opts) {
 
             var strToReplace = srcFile.path.match( opts.srcMatch )[0], stream, targetMatch = opts.targetMatch;
 
-            vfs.src(opts.src).pipe(stream = es.map(function(phpFile, cb){
+            vfs.src(opts.target).pipe(stream = es.map(function(phpFile, cb){
                 //console.log(phpFile.path);
                 var content = phpFile.contents.toString();
                 if(targetMatch(srcFile.path).test(content)){
renamed option.src to option.target