fix ambiguity warnings