[#817] Fix variable error