loadEvents fix