appCounter fix