Bug in deploy script