fixed indexing error for pkg counter