Fix bug due to ambiguous variable name.