fix refreh when press enter