diff --git a/config.sh b/config.sh
index d9ad0e349d58d1b9750de527a1396b959c51e2e9..1e7d767d00748dcdbb37e6f379f53e8ef3c85af7 100755
--- a/config.sh
+++ b/config.sh
@@ -61,7 +61,7 @@ export STAT
 if [ ! "$(uname -s)" = "Redox" ]
 then
 function docgen {
-    "$ROOT/docgen/target/docgen" "$@"
+    "$ROOT/docgen/target/release/docgen" "$@"
 }
 
 function pkgar {