Check correct variable (fixes #39).