fixed input refresh issue