Fix deprecated method name.