Fix misnamed variable. Fixes #1