Fix deployment generation