new counter fix bugs