Update deprecated method call