fixing counts warnings