fixed: crash when refreshing