fix issue when calling refresh at init