Fixing ambiguity exception