diff --git a/algos/template/algo_template_loadtp.m b/algos/template/algo_template_loadtp.m
index 1bc8b55a86d02267203ab1ea19509aa920898e96..1c08d9286f2f173a425caf3672d100c7adcde017 100644
--- a/algos/template/algo_template_loadtp.m
+++ b/algos/template/algo_template_loadtp.m
@@ -3,7 +3,7 @@ function TP = algo_template_loadtp()
 
 TP.enable           = true;
 TP.gain             = single(2);
-TP.refmodel.gain    = 4; % another gain used in referenced model
+TP.refmodel.gain    = single(4); % another gain used in referenced model
 TP.rowvect          = int32([1 2 3]);
 TP.colvect          = int16([1 2 3]');
 TP.matrix           = int8([1 2; 3 4]);