[misc] replace deprecated assertion