Solved event hook duplication memory leak