fix input problem