fixed refresh issues.