when I execute this code, most of part goes good, but `this should not be displayed` were also printed out. I have no idea for this, so note here.