Fix cache lang bug and refresh bug