fix custom events configuration.