Fix and optimize the CensorHook