Use correct variable name (fixes #421)