fix: remove listeners on invalid stroke