Bug fix when binding to text nodes