diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 82be226d42..32159750e5 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -37,7 +37,7 @@ define [ } parseCompileResponse = (response) -> - if response.clsiServerId? and response.clsiServerId != $scope.pdf.clsiServerId + if response.clsiServerId? and response.clsiServerId != ide.clsiServerId ide.clsiServerId = response.clsiServerId # Reset everything