fix refresh login bug