Fixed a memory leak when managing so many events inside rendered