fixed bug refresh input