fixes #2478 - smart-variable in ENC stopped working(cherry picked from commit 3a96ba00c7f5c698eb5c9441be69f3f82f263e9a)
fixes #2478 - smart-variable in ENC stopped working
(cherry picked from commit 3a96ba00c7f5c698eb5c9441be69f3f82f263e9a)