Fix deployment loop