To use ParamBase in setting encoder parameter

I suggest to use ParamBase so as to avoid any problem of unintended parameter setting and unexpected behavior.