Fixed counter header bug