fixed issue of categorymanger unregister