Fix deprecated method signature