Fixes bug with moving text nodes