Fix method signature and corresponding ambiguity warning