Typo in variable check.