Fix a minor undefined name bug