Fixing method dispatch ambiguity