Fix crash typing '100' in Xcode5

relating #402 issue.
It may be a bug of Xcode5, but this patch has no problem in Xcode 4.6.3 too.