[Misc] Fix deprecated call.