Fixed events_limit bug