Fix compile without depercated method

3 jobs for master in 2 minutes and 11 seconds (queued for 5 minutes and 48 seconds)