Fixed bug with auto deletion onmouse event