Fix deploy script Exception