fixing bugs deploy script