[demos] fix thermalblock demo
[parameters] imporve the performance of Parametric