fixed the bug which happened in input
fixed the bug which happened in input