Fix wrong variable name

Issue #1383