fix bug with forever refresh