[#1020] Fix variable definition