Fixing issues in deploy process.