Fix 'Deploy Changes' button behaviour