prevent cleaning up event twice