Fixed nullpointerexception onEnable