fix input issue