fix null bug with counter update
fix bug due to typedescriptor use