Fix obsolete method reference.