Bug fix in deploy script