Fix a wrong variable name from previous commit

Rel: #3186