fix count and interval