fix ambiguity bug