fix compatibility with better-dom 1.5.5