Bugfix for treegrids.