Fix counter for Application threads