diff --git a/files/tal/on_update.sh b/files/tal/on_update.sh
index 28a1e7545c74a35f57d736f4122d872ae1a41120..a114709a76b78f452b07080ac2d0118280185753 100644
--- a/files/tal/on_update.sh
+++ b/files/tal/on_update.sh
@@ -8,5 +8,6 @@ git checkout .gitmodules
 
 make
 
+cd ..
 ln -s source/database database
-cp tal ../
+cp source/tal tal