dtor handler must be set
Fixed incorrect string length comparison