Fix: replace deprecated method call