Fix block counter not working