diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 89e90468a58e47dde79734422bd7e7297662cb92..8cc6b8c5027a7d592cf2bb6a95c53761798e509b 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -109,12 +109,12 @@ fix_venv() {
 
   local py=${PREFIX}/bin/python
 
-  log_info "Hot-fixing virtualenv provided by ${py}..."
-
   case ${PYVER} in
     py3*) py=${py}3 ;;
   esac
 
+  log_info "Hot-fixing virtualenv provided by ${py}..."
+
   mv ${py} ${py}.orig
   cat <<EOT >> ${py}
 #!/usr/bin/env bash