[misc] Fix deprected calls