fix some typos.

Ian, I remember this bug has been fix a long long time ago, why do you put this back again?