Fix periodic refresh being broken