Fix continously refresh bug