Fixed reference to nonexistent variable