Fix deploy procedure