fixes refresh issues