Fix counter segfault.