Fixed NPE on Plugin Hooking