fix ambiguity condition