input check correction
No.12 bug fixing