fixed broken apm counter