diff --git a/Makefile b/Makefile
index a8874b21dcd4c567fcffd14a50c42c7c76ec2434..b0f8576867a3ffc12d80a756e8384bf836cc8a03 100644
--- a/Makefile
+++ b/Makefile
@@ -220,6 +220,8 @@ $(LINKDEF): $(LINKDEF)_preamble $(LINKDEF)_postamble $(SRC)
 	@cat $(LINKDEF)_preamble > $(LINKDEF)
 	@echo $(SRC) | tr ' ' '\n' | sed -e "s|src/|#pragma link C++ class |" | sed -e "s|.cxx|+;|" >> $(LINKDEF)
 	@cat $(LINKDEF)_postamble >> $(LINKDEF)
+	@sed -e "s/class Scaler/class Decoder::Scaler/" $(LINKDEF) > $(LINKDEF)_tmp
+	@mv $(LINKDEF)_tmp $(LINKDEF)
 
 install:	all
 	cp -p $(USERLIB) $(HOME)/cue/SRC/ana