fixing bug in deploy script