diff --git a/src/app/appmarket/appinstance/appinstance/appinstance.component.ts b/src/app/appmarket/appinstance/appinstance/appinstance.component.ts
index 9e196c7b04921668bd8637e414432156c8849032..29bc1d7046f1be918767a62dd9eebe265b35c7f8 100644
--- a/src/app/appmarket/appinstance/appinstance/appinstance.component.ts
+++ b/src/app/appmarket/appinstance/appinstance/appinstance.component.ts
@@ -702,7 +702,7 @@ export class AppInstanceComponent implements OnInit, OnDestroy {
 
     }
 
-    private getDeploymentId(): number {
-        return this.appInstance.application.application.appDeploymentSpec.id
+    private getDeploymentId(): string {
+        return this.appInstance.internalId
     }
 }
diff --git a/src/app/service/appinstance.service.ts b/src/app/service/appinstance.service.ts
index ee989d3176e6a1f2bd509b91e4d3b1a1731c68cb..2fc3e8cbb22983489f766c1274192f1e859cff17 100644
--- a/src/app/service/appinstance.service.ts
+++ b/src/app/service/appinstance.service.ts
@@ -153,10 +153,10 @@ export class AppInstanceService extends GenericDataService {
         return this.http.get<Map<string, string>>(this.getUrl() + `${appInstanceId}/parameters`);
 
     }
-    public scaleDown(appInstanceId: number): Observable<any> {
+    public scaleDown(appInstanceId: string): Observable<any> {
         return this.http.put(this.getUrl() + `${appInstanceId}/scale-down`, null)
     }
-    public scaleUp(appInstanceId: number): Observable<any> {
+    public scaleUp(appInstanceId: string): Observable<any> {
         return this.http.put(this.getUrl() + `${appInstanceId}/scale-up`, null)
     }
 }