qa_pull_deploy: A lot of fixes

After some tests I corrected many errors.