Fix deployment editing errors