fix repeated events
fix issues when using text nodes headless