fixed input reset issue