Bugfix to deploy script