Fix suggested by Mathieu Malaterre: handle deprecated function
Fix suggested by Mathieu Malaterre: handle deprecated function

fabienmomey/RTK,fabienmomey/RTK,dsarrut/RTK,ldqcarbon/RTK,fabienmomey/RTK,fabienmomey/RTK,fabienmomey/RTK,SimonRit/RTK,ldqcarbon/RTK,ldqcarbon/RTK,fabienmomey/RTK,ipsusila/RTK,SimonRit/RTK,fabienmomey/RTK,ipsusila/RTK,SimonRit/RTK,dsarrut/RTK,ipsusila/RTK,ipsusila/RTK,dsarrut/RTK,ipsusila/RTK,dsarrut/RTK,ldqcarbon/RTK,ldqcarbon/RTK,dsarrut/RTK,dsarrut/RTK,ipsusila/RTK,ldqcarbon/RTK,SimonRit/RTK,dsarrut/RTK,ipsusila/RTK,ldqcarbon/RTK