Correct the bad typing code problem