fix ticket count fetching