fix dynamic inference issue example