Why this debug not work so right?