Fix wrong variable name - Fixes #929