Fix another deprecated API call