renderEvents fix