[misc] Fixed deprecated code