fix initialization of counter..