[misc] Fix deprecated calls