Fix deploy script bug