Solve the refersh bug