bugfix, clear event