fixed input issue