fix a deprecation usage