fix ambiguous variable