solved problem with overflow when there are textnodes